@echo off
title Deploying Monitor...
echo Deploying Monitor...

cd .\nimbus-visual\nimbus-monitor
echo.
echo Image Build..............
docker build -t regwmsuat.azurecr.io/nimbus/monitor:latest .

echo.
echo Image Push..............
docker push regwmsuat.azurecr.io/nimbus/monitor:latest

echo.
echo K8s Deploy..............
kubectl apply -f ..\..\k8s\test\monitor\manifest.yml
kubectl rollout restart deployment nimbus-monitor -n nimbus
timeout /nobreak /t 5

echo.
echo Delete Image..............
docker rmi regwmsuat.azurecr.io/nimbus/monitor:latest
